from odoo import fields, models, api, _
from odoo.exceptions import UserError, ValidationError


class WorkflowCheckWizard(models.TransientModel):
    _inherit = "workflow.check.wizard"

    def coding_reject(self):
        self.approval_no_pass()
        return {
            'name': _('Product Coding Template Action'),
            'type': 'ir.actions.act_window',
            'res_model': 'product.coding.template',
            'view_mode': 'tree,form',
            'target': 'current',
        }
